package structures;

import java.util.ArrayList;
import java.util.List;

public class Transaction {
	private List<Operation> operations;
	private int transactionId;
	private int pos;
	
	public Transaction(int transactionId){
		this.transactionId = transactionId;
		operations = new ArrayList<Operation>();
	}

	public List<Operation> getOperations() {
		return operations;
	}
	public void setOperations(List<Operation> operations) {
		this.operations = operations;
	}
	public int getTransactionId() {
		return transactionId;
	}
	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}
	
	public void addOperation(Operation newOperation){
		operations.add(newOperation);
	}

	public int getPos() {
		return pos;
	}

	public void setPos(int pos) {
		this.pos = pos;
	}
}
